// 附件详情-列表查询条件配置
/*
* 列表查询条件form表单
*
* */
export const formOption = {
    size: 'mini',
    inline: true,
    labelWidth: '160px',
    itemData: [
        /*
        * 使用select
        * label: '项目阶段',
        * dicType: 'PRO_STAGE',
        * prop: 'prjStage',
        * */
        {
            type: 'select',
            prop: 'prjStage',
            value: '',
            label: '项目阶段',
            width: '',
            colSpan: 6,
            clearable: true,
            dicType: 'PRO_STAGE',
            dicProp: {
                label: 'dictName',
                value: 'dictId'
            }
        },
        /*
        * 类型: 'select',
        * prop: 'prjNodeId',
        * label: '项目节点',
        * dicType: 'PRJ_NODE',
        * */
        {
            type: 'select',
            prop: 'prjNodeId',
            value: '',
            label: '项目节点',
            width: '',
            colSpan: 6,
            clearable: true,
            dicType: 'PRJ_NODE',
            dicProp: {
                label: 'dictName',
                value: 'dictId'
            }
        },
        /*
        * 类型: 'select',
        * prop: 'prjNodeId',
        * label: '项目节点',
        * dicType: 'PRJ_NODE',
        * */
        {
            type: 'select',
            prop: 'fileGetWay',
            value: '',
            colSpan: 6,
            label: '文件获取方式',
            width: '',
            clearable: true,
            dicType: 'FILE_UPLOAD_MODES',
            dicProp: {
                label: 'dictName',
                value: 'dictId'
            }
        },
        /*
        * 类型: 'input',
        * prop: 'fileType',
        * label: '文件类型',
        * dicType: 'fileType',
        * */
        {
            type: 'input',
            prop: 'fileType',
            value: '',
            colSpan: 6,
            width: '',
            clearable: true,
            label: '文件类型'
        },
        {
            type: 'input',
            prop: 'fileUplink',
            value: '',
            width: '',
            colSpan: 6,
            clearable: true,
            label: '文件上传人'
        }
    ]
}

// 附件信息表头
export const colOption = [
    { label: '项目阶段', width: '120', prop: 'prjStage', dicType: 'PRO_STAGE', dicProp: { label: 'dictName', value: 'dictId' }},
    { label: '项目节点', width: '120', prop: 'nodeName' },
    { label: '文件类型', width: '150', prop: 'docTypeName' },
    { label: '文件名称', width: '', prop: 'fileName' },
    { label: '文件获取方式', width: '140', prop: 'fileSource', filter: { '0': '手动上传', '1': '系统生成', '2': '系统生成/手动编辑' }}, // 0-手动上传，1-系统生成，2-系统生成/手动编辑
    { label: '文件上传人', width: '120', prop: 'uploaderName' },
    { label: '文件获取时间', width: '160', prop: 'uploadTime' },
    { label: '单位', width: '180', prop: 'orgName' },
    { label: '是/否电子签章', width: '100', prop: 'isSignature', filter: { '1': '是', '0': '否' }},
    { label: '签署状态', width: '100', prop: 'signatureStatus', dicType: 'SIGN_STATE2', dicProp: { label: 'dictName', value: 'dictId' }},
    { label: '是/否审计必审', width: '100', prop: 'isAudit', filter: { '1': '是', '0': '否' }}
]

// 附件信息按钮
export const btnOptionA = [
    { label: '指派签署人', fun: 'assign', type: '' },
    { label: '替换', fun: 'renewal', type: '' },
    { label: '删除', fun: 'delete', type: '' },
    { label: '下载', fun: 'download', type: '' }
]

// 附件信息按钮
export const btnOptionB = [
    // { label: '指派签署人', fun: 'assign', type: '' },
    { label: '删除', fun: 'delete', type: '' },
    { label: '下载', fun: 'download', type: '' }
]

// 附件补传
export const btnOptionC = [
    { label: '删除', fun: 'delete', type: '' },
    { label: '下载', fun: 'download', type: '' }
]
